#ifndef CVIMAGETEMPLATE_INCLUDED
#define CVIMAGETEMPLATE_INCLUDED
#define LOADIMAGE(X) IplImage* image =cvLoadImage(X); CVImageTemplate<image->Depth> cvimage (image)

template<int Depth>
class CVImageTemplate
{
public:

	int depth(){ return Depth;}

	operator


	typename OpenCVTrait<Depth>::PixelType * Pix(......);


private:



};


#endif // CVIMAGETEMPLATE_INCLUDED


/*

IplImage* image =cvLoadImage("nsfjhgjhfgh");
CVImageTemplate<image->Depth> cvimage (image);

typename OpenCVTrait<image.depth()>::PixelType* pix = image.Pix(....);
*/

//LOADIMAGE("gsaf.png");
